﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Collections;
using System.Diagnostics;
using System.DirectoryServices;
using System.IO;
using System.Management;
using System.Security;
using Microsoft.Web.Administration;
using Microsoft.Web.Management;

namespace WindowsFormsApplication2
{
  
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }



        private void Form1_Load(object sender, EventArgs e)
        {
            comboBox1.DataSource = Class1.ListNetworkComputers();
        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

            string ServerNumber = comboBox1.Text;
            MessageBox.Show(ServerNumber);

            string FullComputerName = "eraweb1";
            string Name = "henry.jartu";
            string PW = "hms123#";

            Class1.PerformanceMonitor(FullComputerName, Name, PW);
        }

        

        

    }
}



